#!/usr/bin/env python
#!+_+ coding:utf-8 +_+

import httplib

httpClient = httplib.HTTPConnection('localhost', 8080, timeout=30)  

token="nimeinimeide"
uid="weibo_cz"
channel = "weibo"

params = dict(token=token,uid=uid,channel=channel)

req="/apping/demo/login?token={token}&&uid={uid}&&channel={channel}".format(**params)

httpClient.request('GET', req)  
  
response = httpClient.getresponse()  
print response.status  
print response.reason  
print response.read() 
